package com.ruoyi.records.mapper;

import java.util.List;
import com.ruoyi.records.domain.ExchangeRecords;

/**
 * 兑换记录Mapper接口
 * 
 * @author 秦永昆
 * @date 2023-02-12
 */
public interface ExchangeRecordsMapper 
{
    /**
     * 查询兑换记录
     * 
     * @param exchangeRecordsId 兑换记录主键
     * @return 兑换记录
     */
    public ExchangeRecords selectExchangeRecordsByExchangeRecordsId(Long exchangeRecordsId);

    /**
     * 查询兑换记录列表
     * 
     * @param exchangeRecords 兑换记录
     * @return 兑换记录集合
     */
    public List<ExchangeRecords> selectExchangeRecordsList(ExchangeRecords exchangeRecords);

    /**
     * 查询我的兑换记录列表
     *
     * @param exchangeRecords 兑换记录
     * @return 兑换记录集合
     */
    public List<ExchangeRecords> selectMyExchangeRecordsList(ExchangeRecords exchangeRecords);


    /**
     * 新增兑换记录
     * 
     * @param exchangeRecords 兑换记录
     * @return 结果
     */
    public int insertExchangeRecords(ExchangeRecords exchangeRecords);

    /**
     * 修改兑换记录
     * 
     * @param exchangeRecords 兑换记录
     * @return 结果
     */
    public int updateExchangeRecords(ExchangeRecords exchangeRecords);

    /**
     * 删除兑换记录
     * 
     * @param exchangeRecordsId 兑换记录主键
     * @return 结果
     */
    public int deleteExchangeRecordsByExchangeRecordsId(Long exchangeRecordsId);

    /**
     * 批量删除兑换记录
     * 
     * @param exchangeRecordsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteExchangeRecordsByExchangeRecordsIds(Long[] exchangeRecordsIds);
}
